﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABELGX
{
    public class RegisterEnum : Register<int>, INotifyPropertyChanged
    {
        //EnumItem.GetEnumDesc(Enum.GetValues(typeof(ChannelType)));
        public event PropertyChangedEventHandler PropertyChanged;
        public List<EnumItem> Enums {  get; }
        public override int Value
        {
            get => value;
            set
            {
                if (this.value == value)
                {
                    return;
                }
                this.value = value;
                //PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Value"));
                //PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Text"));
                //PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Color"));
            }
        }
        public RegisterEnum(List<EnumItem> enums) 
        {
            Enums = enums;
        }

    }
}
